-- GENERATED SPELL FOR [Cracked Skull Soldier] --


function spell0_1523(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1523', 18000, 1)
end

function Sorts_1523(pUnit, Event)
local choix_sorts_1523 = math.random(0, 0)
if choix_sorts_1523 == 0 then
pUnit:RegisterEvent('spell0_1523', 1, 1)
end
end

function mob1523_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1523', math.random(1500, 3000), 1)
end

function mob1523_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1523_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1523_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1523, 1, 'mob1523_Action')
RegisterUnitEvent(1523, 2, 'mob1523_Leave')
RegisterUnitEvent(1523, 3, 'mob1523_Kill')
RegisterUnitEvent(1523, 4, 'mob1523_Die')
